package
{
	import org.flixel.FlxGroup;
	import org.flixel.FlxSprite;
	import org.flixel.FlxText;

	public class HintBox extends FlxGroup
	{
		public function HintBox(x:int, y:int, textArray:Array)
		{
			var box:FlxSprite = new FlxSprite(521, 189, Res.hintBoxBG);
			add(box);
			
			var xPos:int = x + 17; // hardcoded relative to image
			var yPos:int = y + 56; // hardcoded relative to image
			
			for (var i:int = 0; i < textArray.length; i++) {
				var tutorialText:FlxText = new FlxText(538, yPos, 143, textArray[i], false);
				tutorialText.setFormat("serif", 16, 0xFF000000, "left",0x00000000);
				add(tutorialText);
				yPos += (tutorialText.height + 13);
			}
		}
	}
}